﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ePioneer_ep_questionnaire : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            HttpCookie cookie = Request.Cookies["Users"];
            if (cookie != null)
            {
                if (cookie["userid"] != "")
                    Session["userid"] = cookie["userid"];
            }
            if (Session["userid"] == null || Session["userid"].ToString() == "")
            {
                //Response.Write("<script>alert('请先注册登录后再进行提问或查询，谢谢！。'); this.history.back(-1);</script>");
                Response.Write("<script>alert('请先注册并登录后再回答问题，谢谢！。'); window.location.href='ep_service.aspx';</script>");
                Response.End();
            }
        }
    }
}